#ifndef DATA_H_INCLUDED
#define DATA_H_INCLUDED

#include <pulse/pulseaudio.h>

#include "SynchroQueue.h"
#include "DftCalc.h"


typedef struct my_pa_data {
    pa_mainloop *MainLoop;
    pa_mainloop_api *MainLoop_Api;
    pa_context *Context;

    pa_stream *stream;
    pa_sample_spec steamSpecs;
    int streamBytesPerSec;
    int streamSampleBytes;

    int DftMsecs;
    int DftHzPerSample;
    int BytesForDft;

    unsigned char *curDataBuf;
    int curDataBufPos;

    SynchroQueue *queRawAudioData;
    DftCalc *dft;

    SynchroQueue *queDftMod;

} my_pa_data;



#endif // DATA_H_INCLUDED
